extends KinematicBody2D

onready var player:KinematicBody2D = get_tree().current_scene.get_node("Player")
func _ready():
	set_meta("isEnemy",true)
	pass

func _process(delta):
	var vec = self.position.direction_to(player.position)
	move_and_collide(vec)
